<template>
    <div>
      <van-nav-bar
        title="设置"
        left-text=""
        right-text=""
        left-arrow
        @click-left="onClickLeft"
        @click-right="onClickLeft"
      />
      <van-cell is-link to="/information">个人信息
       <br>
        <span style="float: left">头像、昵称、收货地址</span>
      </van-cell>
      <van-cell is-link to="/security">账号与安全
        <br>
        <span style="float: left">修改密码、修改手机号码</span>
      </van-cell>
      <div style="margin-top: 506px;">
        <van-form @submit="onSubmit">
        <van-button round block type="info" native-type="submit">退出</van-button>
        </van-form>
      </div>
    </div>
</template>

<script>
    export default {
        name: "user_setting",
      methods:{
        onClickLeft(){
          this.$router.go(-1);
        },
        onSubmit() {
          sessionStorage.removeItem("userName");
          sessionStorage.removeItem("id");
          sessionStorage.removeItem("phone");
          this.$router.push("/")
        }
      }
    }
</script>

<style scoped>

</style>
